/**
 * User: alesj
 * Date: 2004.8.30
 * Time: 10:57:33
 */

package com.generalynx.common.utils;

import java.util.Date;

public class DateHolder implements IDate {

    private Date m_date;

    public DateHolder(Date date) {
        m_date = date;
    }

    public int compareTo(Object o) {
        IDate date = (IDate)o;
        return getDate().compareTo(date.getDate());
    }

    public Date getDate() {
        return m_date;
    }
}
